#ifndef SHAREA_GLOBAL_H
#define SHAREA_GLOBAL_H

#include <QtCore/qglobal.h>
/// 导出宏定义 在pro定义 SHAREA_LIBRARY
#if defined(SHAREA_LIBRARY)
#define SHAREA_EXPORT Q_DECL_EXPORT
#else
#define SHAREA_EXPORT Q_DECL_IMPORT
#endif


// 添加 C 风格导出
#ifdef __cplusplus
extern "C" {
#endif

// 导出创建和销毁函数
SHAREA_EXPORT void* createShareAInstance();
SHAREA_EXPORT void destroyShareAInstance(void* instance);
SHAREA_EXPORT void printMessage(void* instance);

#ifdef __cplusplus
}
#endif



#endif // SHAREA_GLOBAL_H
